#!/bin/bash

# 更新tomcat。DSP、GOF等使用，把native包更新到配置文件中
function tomcat_update()
{
  echo_start "$1 ... ..."
  confirm_operate "update webserver"
  if [ $? -eq 0 ]; then
    # 停止tomcat
    if [ -d "$HRS_TOMCAT_HOME/bin" ]; then
      if [ -f "$HRS_TOMCAT_HOME/bin/shutdown.sh" ]; then
        kill_proc "HYRENSERVWEB"
        echo_info "stop webserver done."
      fi
    fi

    echo_passed "$1 done."
  else
    echo_passed "$1 SKIP"
  fi
}
